/**
 * 
 * @param {*设计稿宽度} pwidth 
 * @param {*要转换的比例} prem 
 */

function getRem(pwidth,prem){
    var html = document.getElementsByTagName("html")[0];
    var oWidth = document.body.clientWidth || document.documentElement.clientWidth;
    html.style.fontSize = oWidth/pwidth*prem + "px";
}

// window.onload = function() {
    getRem(414, 16)
// }

